package com.cloudcc.mobile.presenter;

import com.cloudcc.mobile.dao.ContactEngine;
import com.cloudcc.mobile.dao.impl.ContactEngineImpl;
import com.cloudcc.mobile.event.CoworkerEventList.CoworkerListEvent;

public class ContactsPresenter extends BasePresenter {

	private ContactEngine mEngine;

	public ContactsPresenter() {
		super();
		mEngine = new ContactEngineImpl();
	}

	/**
	 * 获取同事列表 支持分页
	 * 
	 * @param page
	 */
	public void getContactList(int page) {
		CoworkerListEvent event = new CoworkerListEvent();
		mEngine.getContactList(page, 800, event);
	}
	public void getContactListNew(String code) {
		CoworkerListEvent event = new CoworkerListEvent();
		mEngine.getContactListNew(code, event);
	}
	public void getContactListguanzhu() {
		CoworkerListEvent event = new CoworkerListEvent();
		mEngine.getContactListGuanzhu(event);
	}

	/**
	 * 获得 下属列表
	 */
	public void getSubStaffList() {
		CoworkerListEvent event = new CoworkerListEvent();
		mEngine.getSubContacts(event);
	}
	/**
	 * 获得关注列表
	 */
	public void getSubStaffListGZ() {
		CoworkerListEvent event = new CoworkerListEvent();
		mEngine.getSubContactsGZ(event);
	}

}
